package com.atguigu.gulimail.order.web.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimail-product")
@Service
public interface ProductFeign {

    @GetMapping("product/spuinfo/{skuId}/info")
    R infoBySkuId(@PathVariable Long skuId);

}
